package com.oa.android.activity;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.oa.android.R;

import butterknife.ButterKnife;
import butterknife.InjectView;

/**
 * Created by zouqh on 2016/6/22.
 */
public class GwsfActivity extends Activity implements View.OnClickListener {


    @InjectView(R.id.close)
    ImageView close;
    @InjectView(R.id.title_text)
    TextView titleText;
    @InjectView(R.id.ritgh_icon)
    ImageView ritghIcon;
    @InjectView(R.id.ritgh_text)
    TextView ritghText;
    @InjectView(R.id.layout1)
    LinearLayout layout1;
    @InjectView(R.id.layout2)
    LinearLayout layout2;
    @InjectView(R.id.layout3)
    LinearLayout layout3;
    @InjectView(R.id.layout4)
    LinearLayout layout4;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.ggsf_activity);
        ButterKnife.inject(this);
        close.setOnClickListener(this);
        titleText.setText("公文收发");
        layout1.setOnClickListener(this);
        layout2.setOnClickListener(this);
        layout3.setOnClickListener(this);
        layout4.setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {

        Intent intent=new Intent();
        switch (v.getId()){
            case R.id.close:
                finish();
                break;

            case R.id.layout1:
                intent.setClass(this,GwJsActivity.class);
                intent.putExtra("type","1");
                startActivity(intent);
                break;
            case R.id.layout2:
                intent.setClass(this,GwJsActivity.class);
                intent.putExtra("type","2");
                startActivity(intent);
                break;
            case R.id.layout3:

                break;
            case R.id.layout4:

                break;
        }
    }
}
